adding streamgraph code