limit stack size