script to process and display aggregated data