added search method to repo