rewrite majority