debugging the generator