battery routines