simplify simple generator somewhat with partial application