update for length(range)