fixed report function