fixed trip_distance method logic