now can write and read