made timer more accurate