add search_function and search_declaration