remove ref to key pair