update index for box