adjusted isValidLiquid