updated time_diff