fixed matrix, added scatterplots