test of rewrite