Fundamentals of stacking