energy counting fixed