changes to ranges class