mod:1.change some global var with prefix g_