check toc length