ensure appropriate branch