working on graph interaction