timer functions updated