how to modify a battery charger