revert global variables