activating and deactivating output