team rewrite