remove unnecessary var gTotalMemory