modify check battery function for V18