fixed getLetter functions