create pids after deleting