updating to work globally