added regeneration option