mayor rewrite