update read_and_write