check for tables