improve code of battery driver