change function read/write