updated global variable