lab2: improve voting