working on graph rendering optimization