avoid mutating a global in an accessor