put footnotes in a file and commented Dan's code