added getBranches()