make order-state a number