changing some global variables