modify indices