add the index for contents