added battery function