changes global variables