init report function