simplify generator