modify structure of index