updates for query