restructure global variables