update index.