use global variables