try to fix global variable