min_stack layout modification