advanced search now working