in the making of truncation of summaries (truncate function in the misc file)