max = Math.min(..) not needed, we know len < olen