code for improvements/changes for the reporting tool