opt out function updated (still need to be fixed though)