added pair correlation function