debug global variable assignment