vote logic update