corrected "pid" calculations