updated the query string