modified to pass system name of report