initializes pid for pstat