switched from battery to power supply