added isRangeEnclosing