change vote logic