rewrite math