modified the base for advanced search