break write corrcoef matrix to function