removed battery code