search function added.