changing the check for tables