it is safer to just use global variable