updated the index. No use the deep level instead the index of the item