added trip_sequence in matrix