Rewrite role