initialize trip functions