for making the graphs