remove unused code for trip handler