added callback to the returnTripData method