Reducing losses in the energy sector