before switching to another branch