global variable detection