creating service for timer functions