remove duplicate vote function