rearrange messages