added a timer to keep track of how long the timer is