By Steve Kingstone
BBC News, Sao Paulo
Brazil's governing Workers' Party has begun choosing a new leadership after a corruption scandal that forced the resignation of several senior figures.
President Lula did not vote in his party's elections
In July, the party admitted to having illegally received funds of $24m.
The revelations led to the resignation of the party president and several high-level colleagues.
On Sunday, 800,000 members were eligible to vote for new leaders at local and national level. The election result is expected this week.
With its reputation in tatters, the Workers' Party desperately needs a fresh start.
This election will produce a new set of leaders in theory untainted by past corruption.
But Sunday's vote was also about ideology.
Many rank-and-file members are disappointed with the party's performance in government.
They say President Luiz Inacio Lula da Silva has been too conservative economically, that he has courted foreign investors while neglecting Brazil's poor.
Of the seven candidates for party president, most now want the government to move to the left.
They are demanding more spending on health and education. Some would like to see the finance minister replaced.
But for now the favourite in this race remains the continuity candidate, Ricardo Berzoini.
As a former cabinet minister, he says the first duty of the party is to offer loyalty to the Lula government.
Surprisingly, Lula himself did not vote on Sunday, perhaps wanting to distance himself from his party's recent troubles.
If there is no clear winner this week, the top two candidates for party president will take part in a run-off early next month.