added length for outflow