battery check added