rewrite block