But, in practice, surface impurities within the part of the semiconductor that touches the metal terminals greatly reduces the width of those depletion layers, to such an extent that the metal-semiconductor junctions do not act as diodes.