use global variable crudely