solved the multiple transaction issue