edit search_name method