corrected stacking order