more elegant copy of data for plotting