changed melt and plot