final formatting and pdf report