rearrange is probably perfect