some edits and footnotes