almost done with reading/writing