added advanced search filtering mechanism