id to pid conversion