got calculate_vote working