update for range