refactor voting results