set ctable length