working on atomic commit