put the cookie removal logic