switched to downward-growing stack