party: implemented treeFold