correcting generation