add private member correctRange()