psth and xcorr update