changed power supply call to static