manage_trips prototype