refactored to use change_in_coordinates, instead of distance