getBranch implemented