added computation of min values