formatting to make PDF work