how to read pid