adding transaction fix