added buildSummary method