correct stack order conditions