added get_distance