change search method to scope