simplified voting code...