make generator work