making timing more accurate