changes to the generator