some code for constructing the shared summary by cipa