added uint getbranch