rearrange links