preventing global variables