removes globals