small modification in graph