added search function