created fits regeneration script