mistake in 3_max_min