selectbranch function now available