Second  try on both max and min, one element only