move search method in model/trip