write functions for observers of .protText and .protPCA