refactoring on authorities