file rearranges