correlation function edited