updated usage of timer