remove waste code and add copyright to footnotes.