corrected timer functionality