opt out function half done