added analysis for averages per category