tables are now built from original data input so we can assign classes and headers