refactor so it can be used for genetic and phenotypic correlations..