remove table and reshape