use if statements for battery and mpd