added check on generated transactions