change static trips into dynamic tool