tweaked the generator