fixed the trip id matching and the bisect