search method in model