remove the generator