changes to func alignment in covariance_matrix (needs to be renamed)