update for index