use query instead of search