use correct iterator.
print out the pid in both cases, duh.