vote function is changed