adv search function added