finished lang impl of main headings