add minstack
add size to maxstack