added in battery script