added report function to output