optimizing Min sampling method.
debug Min
debug Min