simplify generator generator