added unwrap member function.