register_function