change the index structure