add global_function.