rewrote with cytoscape