updated the generator