added 10 ms tolerance