max/min instead of ?: