method setVote added