updated global variables