variable for memory class moved to GlobalVar class