global variable use, but not work