progress in vote and refactoring code