a little update of query_update