additem : change GetBranches to GetBranchesLoop