replaced arrays with lists in plot data