working on advanced search