depreciation calc moved to main.