range optimization