complete convert between tpn and PN