refactoring votes