update the generator