before advanced search