made a better timer reset

assigned a few more global variables... bad but anyway