update the timer