added a search method