add functions checking subhead or superhead