v1.7

add n correction
v1.8

add credit correction(minus average queue length)