report function fixed