cleaned up for plots.