update indices