update subrange to handle value 0