modify indexes structure