fixed last things in report and generated pdf