added pair correlation helper