added table name check