g_func.c modification