fixed unnecessary global