slight changed to plotting scripts