added rangeCount verification