add scatter plot functionality