changed search to query