add simple rearrangement script