simplify generator example etc