formatting and reame rewrite