changed bw to 1/nt and beta is now calculated from 1/nt to 1-1/nt