add a code to summarize simulaton results