change index for object