unwrapTreatment function

Unwrap treatment.