name was being put in the global scope