summarizing data to reduce data points