working on ECGraphs