begin of trip book generate