rewrite samples