update index position