refactored generator name to make clear it is i a generator