implement variables on/off switching