add headings build function