fix the warning about global