added xcorr script