added code to report, still needs to be commented