generate trip controller