adjust the erdos renyi function