added search method