unused generator fix