use global variable