nasty global variable