removes unused generator