fine tuning the t_diiff fun still