array based version of table of contents