added index to Doc.