deactivate logic working