fixing generator
removing pdb call