add some function from trip controller