regenerate sample