added a query builder