main: format chaper headings