changed voting method