rearranges files