Investors & landlords

follow up question - if I can - when I sell the building what improvements can I use to adjust my cost basis? ONLY capital improvements ( ie things that were depreciated)  If I did improvements that were not depreciated but I have receipts, can I use these to adjust the cost basis also?