simplified/reordered stack section