moved any() to trx
added comment