add transaction check