Rewrite the samples