indexing pages to produce an index page