fix #9, right now we add the function of onTripChange