some code clean-up and reduce the scatterplot size a bit