solved search query problem