state update and vote