extrect code to vote module