updated trip create function