small change in definition of rmin