made the graphs work