before switch to branch