define missing class variable $generator