closePin, changePinType