test rewrite