update index structure