it now generates reports correctly