calculate summary statistics separately