added function headings