remove unnecessary auth code