fixed time keeping in getClosest