correlation function updated