removing globals