quick delete of unnecessary variable
initial attempt at inserting footnotes properly