added s_c and xcorr source