some changes for autorization