added dynamic nEdges