update to M3, add scatter plot