rearrange fragment type