In the following code I am generating a uuid and then making sure if it already doesn\'t exist but the problem is variable \'pid\' is not working that is [pid] written after