added footnote function