voting logic simplify