rewrite format