create report and print function