updated to now calculate correlation matrix for sent and sequences, and do statistics in one go