part of query system