adjust calling pid passed in