modify range judgemen logic