update to use pGlobal