getting the plot to working