update MaxStack