The purpose of the two power sources of batteries