file rearrangment