working but slow summarize step