added ~global variables