```scala
  val oldV = buffer.getOrElse(idx, sparseVal)
```