update index contents