table of contents with array