The Bolsheviks recognised the necessity of participation in the old trade unions and in the bourgeois parliament Stalin made friends with the trade union bureaucracy and bourgeois democracy

Please fix the punctuation.
The Bolsheviks recognised the necessity of participation in the old trade unions and in the bourgeois parliament; Stalin made friends with the trade union bureaucracy and bourgeois democracy.