change index structure