start election rewrite