corrected error in td