rewrite jar