rearrange priority