in case of switching on or off of a power supply