is this range correct, because the range of values is generated from 1 to 8, one position less the higher value specified