correct logic in dynamic bounds evaluation.
proper difference of or conditions with dynamic bounds.