adds rewrite of voting block including proper ordering