typo: tangeType instead of rangeType.