debug for PGA and update for PSI