simplifying the code of EstatisticaPartidoControl