small change to the report generation code