minor changes for adv search