switch for deactivate compress method