pattern match, since you are grabbing the values anyway