added query scope for trx