renamed kGlobals that change to gGlobals