adding the pool logic to the order creation