working with battery status