combine the graphs