modified votes code
update