added heading function for #30