defining branch immediately switch to branch