Removed the unused global
Removed the unused  variable