update index of example