adding report function