replace the table with a rectangular one