tweaks to the way ranges are defined