changed batteryd.c