- remove redundant call to compute energy