correctly use $min as range start