made some adjustments on voting after watching solutions