main formatting of the report