write and read transactions working