partial logic of voting