added logic to ReportGenerator#generateReport