use global vars