addPermissions methos updated