put new table code back in