Expansion of gas before it reaches the substrate