reading to write