fixed regen code
typos