finish renaming variables in detect_trips