better code for PSI_ALL