correlation matrix more or less working