search refactorings