changes for plotting