first draft of nonLinearHeadings
headings working
merged with nonLinearHeadings