correlation function added