small change to stats code to speed up connectivity based enhancement simulations