change from document to index including links