getting pid for the Person