refactored search method params