added search method.