search function added