fix scope issue with trip.from and trip.to