updated the indexes