global variables have to be declared before use