getDistance() working better