add Timerfunction