rebranches

For definition of rebranches, please visit here.