update interface of addWord