clean up time_left method