maybe just use `Math.max`?