renaming index to doc