why not just use `math.max`