cb is called when it exists