storing before switching branches