correlation function modified