guard balance and order count