changes to plotting