modified the nested index.