made advanced search a pointer