modified graph to consider zero