add validator to min method