optimize battery performance