non global scope issues