correct rangeCheck