rearrange pipeline core