edited the timer to get rid of debugger error