check tds length