rename write and read to set and get