changed timer functions for heroku