The expansion phase of a pulsation is caused by the blocking of the internal energy flow by material with a high opacity, but this must occur at a particular depth of the star to create visible pulsations. If the expansion occurs below a convective zone then no variation will be visible at the surface. If the expansion occurs too close to the surface the restoring force will be too weak to create a pulsation. The restoring force to create the contraction phase of a pulsation can be pressure if the pulsation occurs in a non-degenerate layer deep inside a star, and this is called an acoustic or pressure mode of pulsation, abbreviated to p-mode. In other cases, the restoring force is gravity and this is called a g-mode. Pulsating variable stars typically pulsate in only one of these modes.