Investors & landlords

Thank you. Just making sure I am understanding it right, since significant work was done between the last day of tenant move out and the final sale, I could consider cleaning and painting as part of the large rehab project and add it to the cost basis, even though painting and cleaning are typically considered as expense instead of improvement?