changes global scope master to singleton