corrected version for query builder on composer file