search function

implemented