re-use of query builder