updated some stuff on how the generator works