modified construction for GlobalVar.cs