how to stop the stack pass