updated report generation script