update index's content