fixed typo relating to creation of pid