rearranges index content