improve footnote detection