ranges adjust properly