added code to report