both this and `setGenerator`