no need for <code>min = min.to_i </code> as <code>to_i</code> is already done at the only place that accesses this private function.