adding TripID to functions