refined the helper function add_pid/2
A better pattern match for the existing pid
channel registered on request