updated for xtable and footnotes