fixed global variable syntax