rewrite_sample.html revised