changes to order of argument for createGlobalVariable