protecting energy with boundaries