deglobalize variables