added table; resolve errors