update time_left