working on advancedSearch - security updated