trying to blend the generator's way of doing things in