removed unnecessary code from auth2