corrected error in tcd output