removed little error of global variable