deleted unnecessary global var