Update and number the index.