working with global variables