report function added.