changed the graphs to work with the new style