changed the timer function for tweeting