read/write works successfully