add 'global' code variable