adding pid