moved timer functions to seperate class