Pr-branch-creation function