small condition change if(noTransaction) -> if(!noTransaction)