first phase of correlation. CPU. too slow