vote encoding