add read/write a word function