do type checking for table modifications