vote function done!