rearrangement of list