update index example