add conversion function sample