make editTrip work