changed the way ranging is done.