changed the voting method