refactor votings