bug fixed,degree distribution working