rename some global variables.