data clean up for plotting..