checked for null condition in transaction