correct detaching