began script to plot everything