the correct range(numerical) is now used consistently. Two different ranges were used that caused problems