table type checking fixed