Useless global removed
Refactoring