handle trips PUT