convert table-legend to footnotes in the annotations table