I think in this case, it should be Math.min