search feature working with corect search result output