search logic OK