remove index from pid generation (pid a string rather than a list)