changed index from documents