updated the timer