corrected timer, sorry for the mess