extract vote into a module