added updateTripDistance