summaryS: new function