stacking with lmax

stacking with max