modify BlockGraph.cpp