advanced search implemented