WHAT ARE THE FUNCTIONS OF ENERGY STORAGE DEVICES