added search method (beginning)