added search function

added search function