improved the mapping of tables in the sheet