changed suummary code