some problems with global variables
some problems with global variables