removed auto regen from code