init report function
ctor + main