updated safety condition for motor switch