added search  method