added revisited table of contents code