update getHistoryLetters method