attempting to implement pid printing