isDistancePassed works fine