refactoring search by author