generation of trip