Why can't this be part of the outer match?