bugs fixed,E=0 at \beta=0 put by hand