put the pid in the right place