rewrite weight