fixed hard coded values

Currently the lower end is hard coded. Fixed that to use the value from the phone range set