check for distance from previous points