add generateReport and end