work on generate summary