cost deductions working again! yayy. going to clean up code next