finally conserving energy without PBC