pick lower of the values when we can go no further

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>