update the query() interface.