switch to global variables